package com.huang;

import org.junit.jupiter.api.Test;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.stream.Stream;

/**
 * @author HuangShen
 * @Description
 * @create 2021-03-31 7:38
 */
public class ASCIIDemo {



    @Test
    public void  test1(){
        String s="AaZ";

        ArrayList<Character> characters = new ArrayList<Character>();
        char[] chars =s.toCharArray();
        for (char aChar : chars) {
            characters.add(aChar);
        }

        Stream<Character> stream = characters.stream();
        stream.map(Integer::valueOf).forEach(System.out::print);
    }
}
